import {
  Entity,
  Column,
  PrimaryGeneratedColumn,
  CreateDateColumn,
} from 'typeorm';

@Entity('resume_file')
export class ResumeFile {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ nullable: false })
  fileName: string;

  @Column({ nullable: false })
  username: string;

  @Column({ nullable: false })
  fileType: string;

  @Column({ nullable: false })
  filePath: string;

  @Column('text', { nullable: false })
  optimizedResult: string;

  @CreateDateColumn()
  createdAt: Date;
}
